From 9f3f19134ac587c5f25134f350ec53e4fd4498da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C3=ABl=20Cadilhac?= Date: Sun, 26 Aug 2007 19:34:31 +0000 Subject: [PATCH] (hi-lock-unface-buffer): Show a x-menu only if the mouse was used. --- lisp/hi-lock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 522a50b9a7f..b5e62e7a909 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -462,7 +462,7 @@ interactive functions. \(See `hi-lock-interactive-patterns'.\) \\Use \\[minibuffer-complete] to complete a partially typed regexp. \(See info node `Minibuffer History'.\)" (interactive - (if (and (display-popup-menus-p) (vectorp (this-command-keys))) + (if (and (display-popup-menus-p) (not last-nonmenu-event)) (catch 'snafu (or (x-popup-menu -- 2.30.2